/**
 * 
 */
use std::ops::Add;
struct Scores<T:Add>{
   chinese:T,
   math:T,
   english:T
}

impl<T: Add> Scores<T> {
    fn  getTotal(&self) -> T where T:Add {
        self.chinese + self.math + self.english
    }
}

fn main(){
    let scores = Scores{
        chinese: 90,
        math: 85,
        english: 76,
    };
    println!("{}",scores.getTotal());
}